package com.example.application;

import com.google.gson.annotations.SerializedName;
import java.util.ArrayList;
import java.util.List;

public class MainBean {
    @SerializedName("status_code")
    private Integer statusCode;
    @SerializedName("comments")
    private ArrayList<CommentsDTO> comments=new ArrayList<>();
    @SerializedName("cursor")
    private Integer cursor;
    @SerializedName("has_more")
    private Integer hasMore;
    @SerializedName("total")
    private Integer total;
    @SerializedName("extra")
    private ExtraDTO extra;
    @SerializedName("log_pb")
    private LogPbDTO logPb;

    public Integer getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(Integer statusCode) {
        this.statusCode = statusCode;
    }

    public ArrayList<CommentsDTO> getComments() {
        return comments;
    }

    public void setComments(ArrayList<CommentsDTO> comments) {
        this.comments = comments;
    }

    public Integer getCursor() {
        return cursor;
    }

    public void setCursor(Integer cursor) {
        this.cursor = cursor;
    }

    public Integer getHasMore() {
        return hasMore;
    }

    public void setHasMore(Integer hasMore) {
        this.hasMore = hasMore;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public ExtraDTO getExtra() {
        return extra;
    }

    public void setExtra(ExtraDTO extra) {
        this.extra = extra;
    }

    public LogPbDTO getLogPb() {
        return logPb;
    }

    public void setLogPb(LogPbDTO logPb) {
        this.logPb = logPb;
    }

    public static class ExtraDTO {
        @SerializedName("now")
        private Long now;
        @SerializedName("fatal_item_ids")
        private Object fatalItemIds;

        public Long getNow() {
            return now;
        }

        public void setNow(Long now) {
            this.now = now;
        }

        public Object getFatalItemIds() {
            return fatalItemIds;
        }

        public void setFatalItemIds(Object fatalItemIds) {
            this.fatalItemIds = fatalItemIds;
        }
    }

    public static class LogPbDTO {
        @SerializedName("impr_id")
        private String imprId;

        public String getImprId() {
            return imprId;
        }

        public void setImprId(String imprId) {
            this.imprId = imprId;
        }
    }

    public static class CommentsDTO {
        @SerializedName("cid")
        private String cid;
        @SerializedName("text")
        private String text;
        @SerializedName("user")
        private UserDTO user;

        public String getCid() {
            return cid;
        }

        public void setCid(String cid) {
            this.cid = cid;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }

        public UserDTO getUser() {
            return user;
        }

        public void setUser(UserDTO user) {
            this.user = user;
        }

        public static class UserDTO {
            @SerializedName("uid")
            private String uid;
            @SerializedName("short_id")
            private String shortId;
            @SerializedName("nickname")
            private String nickname;
            @SerializedName("gender")
            private Integer gender;
            @SerializedName("signature")
            private String signature;

            public String getUid() {
                return uid;
            }

            public void setUid(String uid) {
                this.uid = uid;
            }

            public String getShortId() {
                return shortId;
            }

            public void setShortId(String shortId) {
                this.shortId = shortId;
            }

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

            public Integer getGender() {
                return gender;
            }

            public void setGender(Integer gender) {
                this.gender = gender;
            }

            public String getSignature() {
                return signature;
            }

            public void setSignature(String signature) {
                this.signature = signature;
            }

        }

    }

}
